{extend name="normal_base" /}
{block name="navigation"}{/block}
{block name="css"}
<style>
</style>
{/block}
{block name="body"}
<div class="x-body">
    <form class="layui-form" id="from_id" method="POST" action="{:url('pack_scanning_file')}">
        <!--项目分组-->
        <div class="layui-form-item">
            <label class="layui-form-label">项目组：</label>
            <div class="layui-input-inline">
                <select name="project_group_id" id="project_group_id" lay-filter="required">
                    <option value=''>请选择</option>
                    {foreach name='project_group_list' item='v' key="k"}
                    <option value="{$k}" selected="selected">{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <!--回收开始时间起始-->
        <div class="layui-form-item">
            <label class="layui-form-label">回收时间：</label>
            <div class="layui-input-inline">
                <input class="layui-input" placeholder="开始时间" name="recycle_begin" id="recycle_begin">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline">
                <input class="layui-input" placeholder="截止时间" name="recycle_end" id="recycle_end">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    打包
                </button>
            </div>
        </div>

    </form>
</div>

{/block}

{block name="script"}

<script>
    layui.use(['form','layer', 'laydate'], function(){

        $ = layui.jquery;
        var form = layui.form
                ,layer = layui.layer;
        var laydate = layui.laydate;

        laydate.render({
            elem: '#recycle_begin' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#recycle_end' //指定元素
        });

    });
</script>
{/block}